﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="usrMobilePhone.ascx.cs"
    Inherits="controls_usrMobilePhone" %>
<span>
    <asp:DropDownList ID="ddlMobile" runat="server"  ToolTip ="Mobile No" Width="65">
        <asp:ListItem Text="<%$ Resources:CarInsurance,Select%>" Value="-1" />
        <asp:ListItem Text="080" Value="080" />
        <asp:ListItem Text="081" Value="081" />
        <asp:ListItem Text="082" Value="082" />
        <asp:ListItem Text="083" Value="083" />
        <asp:ListItem Text="084" Value="084" />
        <asp:ListItem Text="085" Value="085" />
        <asp:ListItem Text="086" Value="086" />
        <asp:ListItem Text="087" Value="087" />
        <asp:ListItem Text="088" Value="088" />
        <asp:ListItem Text="089" Value="089" />
        <asp:ListItem Text="090" Value="090" />
        <asp:ListItem Text="091" Value="091" />
        <asp:ListItem Text="092" Value="092" />
        <asp:ListItem Text="093" Value="093" />
        <asp:ListItem Text="094" Value="094" />
        <asp:ListItem Text="095" Value="095" />
        <asp:ListItem Text="096" Value="096" />
        <asp:ListItem Text="097" Value="097" />
        <asp:ListItem Text="098" Value="098" />
        <asp:ListItem Text="099" Value="099" />        
    </asp:DropDownList>
 
</span>

<span>
    <asp:RequiredFieldValidator ID="rfvMobile" ControlToValidate="ddlMobile" runat="server"
        CssClass="validationErrorControl" ErrorMessage="" InitialValue="-1">
    </asp:RequiredFieldValidator>

</span>

<span>
    <asp:TextBox ID="txtPhoneNo" runat="server" MaxLength="7" ToolTip="Enter 7 digits phone number." Width="68px" Height="18px" />
</span>

<span>    
    <%--Require Phone Number--%>
    <asp:RequiredFieldValidator CssClass="validationErrorControl" ID="rfvPhoneNo"
        runat="server" ControlToValidate="txtPhoneNo" ErrorMessage="" Text="" Display="Dynamic">
     </asp:RequiredFieldValidator>

    <%--Phone number is not valid.--%>
    <asp:CustomValidator CssClass="validationErrorControl" ID="csvPhoneNo" runat="server"
        ControlToValidate="txtPhoneNo" Display="Dynamic" Text="" ErrorMessage="" 
        OnServerValidate="CheckPhoneNoServerValidation"></asp:CustomValidator>
    <%--Phone number must be 9 digits number value.--%>
    <asp:RegularExpressionValidator CssClass="validationErrorControl" ID="revPhoneNo"
        runat="server" ValidationExpression="[0-9]{7}" ControlToValidate="txtPhoneNo"
        ErrorMessage="" Text="" Display="Dynamic"></asp:RegularExpressionValidator>                
</span>        
